@import '../../../assets/css/CommonStyle.scss';

@include media('>=tablet') {
  .homeContainer {
    .layoutContent {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .main-title {
      display: none;
    }
    .menu_item {
      width: p-w(200);
      height: p-w(200);
      background: rgba(255, 255, 255, 1);
      box-shadow: 0px 0px 20px 0px rgba(66, 156, 255, 0.2);
      border-radius: 8px;
      color: $btn-color;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      transition: all 0.5s;
      bottom: 0;
      margin-right: p-w(80);
      padding: p-w(40) 0px;
      cursor: pointer;
      &:nth-child(3) {
        margin-right: 0px;
      }
      &:hover {
        transform: translateY(-24px);
        position: relative;
        box-shadow: 0px 0px 20px 0px rgba(66, 156, 255, 0.4);
      }
    }

    .men_con {
      display: flex;
      justify-content: center;
      height: 100%;
      align-items: center;
    }

    .menu_name {
      font-size: 16px;
      font-family: PingFangSC-Regular, PingFangSC;
      font-weight: 400;
      margin-top: p-w(42);
    }
  }
}

@include media('>phone', '<=tablet') {
  .homeContainer {
    .layoutContent {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .main-title {
      display: none;
    }
    .menu_item {
      width: pad-w(200);
      height: pad-w(200);
      background: rgba(255, 255, 255, 1);
      box-shadow: 0px 0px 20px 0px rgba(66, 156, 255, 0.2);
      color: $btn-color;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      transition: all 0.5s;
      bottom: 0;
      cursor: pointer;
      margin-right: pad-w(80);
      padding: pad-w(40) 0px;
      &:nth-child(3) {
        margin-right: 0px;
      }
      &:hover {
        position: relative;
        bottom: 24px;
        box-shadow: 0px 0px 20px 0px rgba(66, 156, 255, 0.4);
      }
    }

    .men_con {
      display: flex;
      justify-content: center;
      height: 100%;
      align-items: center;
    }

    .menu_name {
      font-size: 16px;
      font-family: PingFangSC-Regular, PingFangSC;
      font-weight: 400;

      margin-top: pad-w(42);
    }
    .men_box {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

@include media('<=phone') {
  .homeContainer {
    width: 100%;

    .men_box {
      padding: m-w(0) m-w(35);
      padding-top: m-w(90);

      .men_con {
        display: flex;
        width: 100%;
        justify-content: space-around;
        .menu_item {
          display: flex;
          flex-direction: column;
          padding: m-w(45) 0px m-w(32) 0px;
          width: m-w(200);
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow: 0px 0px m-w(20) 0px rgba(66, 156, 255, 0.2);
          border-radius: 8px;

          .menu_name {
            margin-top: m-w(32);
          }
        }
      }
    }

    .main-title {
      display: flex;
      font-weight: bold;
      margin-top: m-w(24);
      margin-bottom: m-w(186);
    }
    .heig2 {
      display: none;
    }
  }
}
